namespace ShareMarking.Systems.Entity {
    	using System;
    	
    	
    	/// <summary>
    	/// 表名：sys_navigation 主键列：id
    	/// </summary>
    	[SerializableAttribute()]
    	public partial class sys_navigation : MySoft.Data.Entity {
    		
    		protected Int32 _id;
    		
    		protected String _nav_type;
    		
    		protected String _name;
    		
    		protected String _title;
    		
    		protected String _sub_title;
    		
    		protected String _link_url;
    		
    		protected Int32? _sort_id;
    		
    		protected Int32? _is_lock;
    		
    		protected String _remark;
    		
    		protected Int32? _parent_id;
    		
    		protected String _class_list;
    		
    		protected Int32? _class_layer;
    		
    		protected Int32? _channel_id;
    		
    		protected String _action_type;
    		
    		protected Int32? _is_sys;
    		
    		/// <summary>
    		/// 自增ID
    		/// </summary>
    		public Int32 id {
    			get {
    				return this._id;
    			}
    			set {
    				this.OnPropertyValueChange(_.id, _id, value);
    				this._id = value;
    			}
    		}
    		
    		/// <summary>
    		/// 导航类别
    		/// </summary>
    		public String nav_type {
    			get {
    				return this._nav_type;
    			}
    			set {
    				this.OnPropertyValueChange(_.nav_type, _nav_type, value);
    				this._nav_type = value;
    			}
    		}
    		
    		/// <summary>
    		/// 导航ID
    		/// </summary>
    		public String name {
    			get {
    				return this._name;
    			}
    			set {
    				this.OnPropertyValueChange(_.name, _name, value);
    				this._name = value;
    			}
    		}
    		
    		/// <summary>
    		/// 标题
    		/// </summary>
    		public String title {
    			get {
    				return this._title;
    			}
    			set {
    				this.OnPropertyValueChange(_.title, _title, value);
    				this._title = value;
    			}
    		}
    		
    		/// <summary>
    		/// 副标题
    		/// </summary>
    		public String sub_title {
    			get {
    				return this._sub_title;
    			}
    			set {
    				this.OnPropertyValueChange(_.sub_title, _sub_title, value);
    				this._sub_title = value;
    			}
    		}
    		
    		/// <summary>
    		/// 链接地址
    		/// </summary>
    		public String link_url {
    			get {
    				return this._link_url;
    			}
    			set {
    				this.OnPropertyValueChange(_.link_url, _link_url, value);
    				this._link_url = value;
    			}
    		}
    		
    		/// <summary>
    		/// 排序数字
    		/// </summary>
    		public Int32? sort_id {
    			get {
    				return this._sort_id;
    			}
    			set {
    				this.OnPropertyValueChange(_.sort_id, _sort_id, value);
    				this._sort_id = value;
    			}
    		}
    		
    		/// <summary>
    		/// 是否隐藏0显示1隐藏
    		/// </summary>
    		public Int32? is_lock {
    			get {
    				return this._is_lock;
    			}
    			set {
    				this.OnPropertyValueChange(_.is_lock, _is_lock, value);
    				this._is_lock = value;
    			}
    		}
    		
    		/// <summary>
    		/// 备注说明
    		/// </summary>
    		public String remark {
    			get {
    				return this._remark;
    			}
    			set {
    				this.OnPropertyValueChange(_.remark, _remark, value);
    				this._remark = value;
    			}
    		}
    		
    		/// <summary>
    		/// 所属父导航ID
    		/// </summary>
    		public Int32? parent_id {
    			get {
    				return this._parent_id;
    			}
    			set {
    				this.OnPropertyValueChange(_.parent_id, _parent_id, value);
    				this._parent_id = value;
    			}
    		}
    		
    		/// <summary>
    		/// 菜单ID列表(逗号分隔开)
    		/// </summary>
    		public String class_list {
    			get {
    				return this._class_list;
    			}
    			set {
    				this.OnPropertyValueChange(_.class_list, _class_list, value);
    				this._class_list = value;
    			}
    		}
    		
    		/// <summary>
    		/// 导航深度
    		/// </summary>
    		public Int32? class_layer {
    			get {
    				return this._class_layer;
    			}
    			set {
    				this.OnPropertyValueChange(_.class_layer, _class_layer, value);
    				this._class_layer = value;
    			}
    		}
    		
    		/// <summary>
    		/// 所属频道ID
    		/// </summary>
    		public Int32? channel_id {
    			get {
    				return this._channel_id;
    			}
    			set {
    				this.OnPropertyValueChange(_.channel_id, _channel_id, value);
    				this._channel_id = value;
    			}
    		}
    		
    		/// <summary>
    		/// 权限资源
    		/// </summary>
    		public String action_type {
    			get {
    				return this._action_type;
    			}
    			set {
    				this.OnPropertyValueChange(_.action_type, _action_type, value);
    				this._action_type = value;
    			}
    		}
    		
    		/// <summary>
    		/// 系统默认
    		/// </summary>
    		public Int32? is_sys {
    			get {
    				return this._is_sys;
    			}
    			set {
    				this.OnPropertyValueChange(_.is_sys, _is_sys, value);
    				this._is_sys = value;
    			}
    		}
    		
    		/// <summary>
    		/// 获取实体对应的表名
    		/// </summary>
    		protected override MySoft.Data.Table GetTable() {
    			return new MySoft.Data.Table<sys_navigation>("sys_navigation");
    		}
    		
    		/// <summary>
    		/// 获取实体中的标识列
    		/// </summary>
    		protected override MySoft.Data.Field GetIdentityField() {
    			return _.id;
    		}
    		
    		/// <summary>
    		/// 获取实体中的主键列
    		/// </summary>
    		protected override MySoft.Data.Field[] GetPrimaryKeyFields() {
    			return new MySoft.Data.Field[] {
    					_.id};
    		}
    		
    		/// <summary>
    		/// 获取列信息
    		/// </summary>
    		protected override MySoft.Data.Field[] GetFields() {
    			return new MySoft.Data.Field[] {
    					_.id,
    					_.nav_type,
    					_.name,
    					_.title,
    					_.sub_title,
    					_.link_url,
    					_.sort_id,
    					_.is_lock,
    					_.remark,
    					_.parent_id,
    					_.class_list,
    					_.class_layer,
    					_.channel_id,
    					_.action_type,
    					_.is_sys};
    		}
    		
    		/// <summary>
    		/// 获取列数据
    		/// </summary>
    		protected override object[] GetValues() {
    			return new object[] {
    					this._id,
    					this._nav_type,
    					this._name,
    					this._title,
    					this._sub_title,
    					this._link_url,
    					this._sort_id,
    					this._is_lock,
    					this._remark,
    					this._parent_id,
    					this._class_list,
    					this._class_layer,
    					this._channel_id,
    					this._action_type,
    					this._is_sys};
    		}
    		
    		/// <summary>
    		/// 给当前实体赋值
    		/// </summary>
    		protected override void SetValues(MySoft.Data.IRowReader reader) {
    			if ((false == reader.IsDBNull(_.id))) {
    				this._id = reader.GetInt32(_.id);
    			}
    			if ((false == reader.IsDBNull(_.nav_type))) {
    				this._nav_type = reader.GetString(_.nav_type);
    			}
    			if ((false == reader.IsDBNull(_.name))) {
    				this._name = reader.GetString(_.name);
    			}
    			if ((false == reader.IsDBNull(_.title))) {
    				this._title = reader.GetString(_.title);
    			}
    			if ((false == reader.IsDBNull(_.sub_title))) {
    				this._sub_title = reader.GetString(_.sub_title);
    			}
    			if ((false == reader.IsDBNull(_.link_url))) {
    				this._link_url = reader.GetString(_.link_url);
    			}
    			if ((false == reader.IsDBNull(_.sort_id))) {
    				this._sort_id = reader.GetInt32(_.sort_id);
    			}
    			if ((false == reader.IsDBNull(_.is_lock))) {
    				this._is_lock = reader.GetInt32(_.is_lock);
    			}
    			if ((false == reader.IsDBNull(_.remark))) {
    				this._remark = reader.GetString(_.remark);
    			}
    			if ((false == reader.IsDBNull(_.parent_id))) {
    				this._parent_id = reader.GetInt32(_.parent_id);
    			}
    			if ((false == reader.IsDBNull(_.class_list))) {
    				this._class_list = reader.GetString(_.class_list);
    			}
    			if ((false == reader.IsDBNull(_.class_layer))) {
    				this._class_layer = reader.GetInt32(_.class_layer);
    			}
    			if ((false == reader.IsDBNull(_.channel_id))) {
    				this._channel_id = reader.GetInt32(_.channel_id);
    			}
    			if ((false == reader.IsDBNull(_.action_type))) {
    				this._action_type = reader.GetString(_.action_type);
    			}
    			if ((false == reader.IsDBNull(_.is_sys))) {
    				this._is_sys = reader.GetInt32(_.is_sys);
    			}
    		}
    		
    		public override int GetHashCode() {
    			return base.GetHashCode();
    		}
    		
    		public override bool Equals(object obj) {
    			if ((obj == null)) {
    				return false;
    			}
    			if ((false == typeof(sys_navigation).IsAssignableFrom(obj.GetType()))) {
    				return false;
    			}
    			if ((((object)(this)) == ((object)(obj)))) {
    				return true;
    			}
    			return false;
    		}
    		
    		public class _ {
    			
    			/// <summary>
    			/// 表示选择所有列，与*等同
    			/// </summary>
    			public static MySoft.Data.AllField All = new MySoft.Data.AllField<sys_navigation>();
    			
    			/// <summary>
    			/// 自增ID - 字段名：id - 数据类型：Int32
    			/// </summary>
    			public static MySoft.Data.Field id = new MySoft.Data.Field<sys_navigation>("id");
    			
    			/// <summary>
    			/// 导航类别 - 字段名：nav_type - 数据类型：String
    			/// </summary>
    			public static MySoft.Data.Field nav_type = new MySoft.Data.Field<sys_navigation>("nav_type");
    			
    			/// <summary>
    			/// 导航ID - 字段名：name - 数据类型：String
    			/// </summary>
    			public static MySoft.Data.Field name = new MySoft.Data.Field<sys_navigation>("name");
    			
    			/// <summary>
    			/// 标题 - 字段名：title - 数据类型：String
    			/// </summary>
    			public static MySoft.Data.Field title = new MySoft.Data.Field<sys_navigation>("title");
    			
    			/// <summary>
    			/// 副标题 - 字段名：sub_title - 数据类型：String
    			/// </summary>
    			public static MySoft.Data.Field sub_title = new MySoft.Data.Field<sys_navigation>("sub_title");
    			
    			/// <summary>
    			/// 链接地址 - 字段名：link_url - 数据类型：String
    			/// </summary>
    			public static MySoft.Data.Field link_url = new MySoft.Data.Field<sys_navigation>("link_url");
    			
    			/// <summary>
    			/// 排序数字 - 字段名：sort_id - 数据类型：Int32(可空)
    			/// </summary>
    			public static MySoft.Data.Field sort_id = new MySoft.Data.Field<sys_navigation>("sort_id");
    			
    			/// <summary>
    			/// 是否隐藏0显示1隐藏 - 字段名：is_lock - 数据类型：Int32(可空)
    			/// </summary>
    			public static MySoft.Data.Field is_lock = new MySoft.Data.Field<sys_navigation>("is_lock");
    			
    			/// <summary>
    			/// 备注说明 - 字段名：remark - 数据类型：String
    			/// </summary>
    			public static MySoft.Data.Field remark = new MySoft.Data.Field<sys_navigation>("remark");
    			
    			/// <summary>
    			/// 所属父导航ID - 字段名：parent_id - 数据类型：Int32(可空)
    			/// </summary>
    			public static MySoft.Data.Field parent_id = new MySoft.Data.Field<sys_navigation>("parent_id");
    			
    			/// <summary>
    			/// 菜单ID列表(逗号分隔开) - 字段名：class_list - 数据类型：String
    			/// </summary>
    			public static MySoft.Data.Field class_list = new MySoft.Data.Field<sys_navigation>("class_list");
    			
    			/// <summary>
    			/// 导航深度 - 字段名：class_layer - 数据类型：Int32(可空)
    			/// </summary>
    			public static MySoft.Data.Field class_layer = new MySoft.Data.Field<sys_navigation>("class_layer");
    			
    			/// <summary>
    			/// 所属频道ID - 字段名：channel_id - 数据类型：Int32(可空)
    			/// </summary>
    			public static MySoft.Data.Field channel_id = new MySoft.Data.Field<sys_navigation>("channel_id");
    			
    			/// <summary>
    			/// 权限资源 - 字段名：action_type - 数据类型：String
    			/// </summary>
    			public static MySoft.Data.Field action_type = new MySoft.Data.Field<sys_navigation>("action_type");
    			
    			/// <summary>
    			/// 系统默认 - 字段名：is_sys - 数据类型：Int32(可空)
    			/// </summary>
    			public static MySoft.Data.Field is_sys = new MySoft.Data.Field<sys_navigation>("is_sys");
    		}
    	}
    }
